Gravitational N-Body Problem: Tree Code